package com.aruba.attendance.database.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 打卡记录
 * Created by aruba on 2023/2/15.
 */
@Entity
data class RecordEntity(
    var year: Int,
    var month: Int,
    var dayOfMonth: Int,
    var time: String,
    var photoPath: String,
    var type: Int = TYPE_GO_WORK// 0:上班 1:下班
) {
    @JvmField
    @PrimaryKey(autoGenerate = true)
    var id: Int? = null

    var delayDuration: Long? = null

    companion object {
        const val TYPE_GO_WORK = 0
        const val TYPE_OFF_WORK = 1
    }
}